/**
 * @作者 Luke
 * @微信公号 欧诺的小书屋
 * @开源项目 $ http://7yue.pro
 * @免费专栏 $ http://course.7yue.pro
 * @我的课程 $ http://imooc.com/t/4294850
 * @创建时间 2020-6-23 17:18
 */
package io.github.talelin.latticy.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.github.talelin.latticy.model.HomeworkDO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface HomeworkMapper extends BaseMapper<HomeworkDO> {

    /**
     * 根据teacherId courseId 获取作业列表
     * @param teacherId 教师id
     * @param courseId 课程id
     * @return  HomeworkDO
     */
    List<HomeworkDO> selectByTeacherIdAndCourseId(@Param(value = "teacherId") Long teacherId,
                                                  @Param(value = "courseId") Long courseId);
}
